/*
*author: 陈海俊
*time: 2017/12/24
*
* component 基础类,所有component都继承此类
*
*/

class Component{
  constructor(cfg){
    this.type = cfg.type;
    this.width = cfg.width;
    this.height = cfg.height;
    console.log('component constructor');
  }
  animate(){
    // 执行动画
    console.log('animate')
  }
  reset(){
    // 重置组件
    console.log('reset')
  }
}

export default Component;
